package com.nelson.musicplayer.business.home

import android.app.Application
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.LiveData
import com.nelson.musicplayer.business.home.repository.HomeRepository
import com.nelson.musicplayer.source.Resource
import com.nelson.musicplayer.source.bean.HomeData

/**
 * @author nelson
 * @since 2020-07-27
 */
class HomeViewModel : AndroidViewModel(Application()) {

    fun fetchHomeData(): LiveData<Resource<HomeData?>> {
        return HomeRepository.fetchHomeData()
    }
}